# -*- coding: utf-8 -*-
import web

render = web.template.render('templates/')

urls = (
  '/', 'index',
  '/favicon', 'icon',
  '/(.*)', 'page',
)

class index:
  def GET(self):
    return render.index()

class icon:
  def GET(self):
    return web.seeother('/static/favicon.ico')

class page():
  def GET(self, url):
    return render.page(url)

if __name__ == "__main__":
  app = web.application(urls, globals())
  app.run()
